Page({
  data: {
    imgUrls: [
      "../../img/one.jpg",
      "../../img/two.jpg"
    ],
    indicatorDots: true,
    autoplay: true,
    indicatorActiveColor: "white",
    interval: 5000,

    duration: 1000,
    
  },
  changeIndicatorDots: function (e) {
    this.setData({
      indicatorDots: !this.data.indicatorDots
    })
  },
  changeAutoplay: function (e) {
    this.setData({
      autoplay: !this.data.autoplay
    })
  },
  intervalChange: function (e) {
    this.setData({
      interval: e.detail.value
    })
  },
  durationChange: function (e) {
    this.setData({
      duration: e.detail.value
    })
  }
})